<%--
  Created by IntelliJ IDEA.
  User: 吴超
  Date: 2022/4/11
  Time: 16:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    Cookie[] cookies = request.getCookies();
    if(cookies!=null) {
        for (Cookie ck : cookies) {
            if(!ck.getName().equals("user")){
                out.print("非法入侵");
                response.sendRedirect("login.jsp");
            }
        }
    }
    //pageContext.include("s");
%>
登录成功
<a href="cancle.jsp">点我注销</a>

</body>
</html>
